#include("common.html")
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>商城</title>
    
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="full-screen" content="yes">
    <meta name="x5-fullscreen" content="true">
    <link rel="stylesheet" type="text/css" href="#(tpath)/static/css/vant.css">
    <link rel="stylesheet" type="text/css" href="#(tpath)/static/css/filter.css">
    <script type="text/javascript" src="#(tpath)/static/js/jquery.js"></script>
        <style type="text/css">
    .topTile {
	font-size: 16px;
	margin: 20px 4%;
	color: #333;
}

.couponList {
	margin-bottom: 63px;
}

.stamp {
	width: 89.3%;
	margin-bottom: 15px;
	margin-left: 3.6%;
	min-height: 120px;
	padding: 0 2%;
	position: relative;
	overflow: hidden;
	list-style: none;
	background: #4cb551;
	/* background: radial-gradient(rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 4px, #4cb551 4px); */
	background-size: 12px 8px;
	background-position: 2%;
}

.stamp:before {
	background-color: #4cb551;
	left: 5px;
	right: 5px;
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: -1;
}

.stamp:after {
	content: '';
	position: absolute;
	left: 10px;
	top: 10px;
	right: 10px;
	bottom: 10px;
	box-shadow: 0 0 20px 1px rgb(255, 255, 255);
	z-index: -2;
}

.stamp .par {
	float: left;
	padding: 16px 7% 16px 2%;
	width: 54%;
	border-right: 2px dashed rgba(255, 255, 255, 0.3);
	text-align: left;
}

.stamp .copy {
	padding: 13px 2% 12px 4%;
	font-size: 24px;
	display: inline-block;
	width: 30%;
	vertical-align: text-bottom;
	color: rgb(255, 255, 255);
	text-align: center;
	line-height: initial;
}

.stamp .par text {
	position: relative;
	top: -5px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 15px;
}

.stamp .par span {
	font-size: 28px;
	color: #fff;
	margin-right: 5px;
	line-height: 45px;
}

.stamp .par div {
	color: #fff;
	font-size: 14px;
	line-height: 21px;
}

.stamp .copy div {
	font-size: 14px;
	margin-top: 5px;
	margin-bottom: 8px;
}

.stamp .copy .chooseNav {
	background-color: #fff;
	color: #333;
	font-size: 14px;
	text-decoration: none;
	padding: 5px 10px;
	border-radius: 3px;
	display: block;
}

.stamp i {
	position: absolute;
	left: 20%;
	top: 45px;
	height: 190px;
	width: 390px;
	background-color: rgba(255, 255, 255, 0.15);
	transform: rotate(-30deg);
}

.page .invalid {
	background: #827d76;
	/* background: radial-gradient(rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 4px, #a9a6a0 4px); */
	background-size: 12px 8px;
	background-position: 2%;
}

.page .invalid:before {
	background-color: #a9a6a0;
}

.bottom {
	width: 100%;
	position: fixed;
	bottom: 0px;
	color: #333;
	border-top: 1px solid #f1f1f1;
	text-align: center;
	font-size: 16px;
	line-height: 45px;
	background: #f9f9f9;
}
    </style>
    <style type="text/css">
    .topTile {
    font-size: 16px;
    margin: 20px 4%;
    color: #333;
}
    </style>
  </head>
  
  <body class="">
    <style type="text/css">@media only screen and (min-width: 320px){ html { font-size: 62.5% !important; } } @media only screen and (min-width: 640px){ html { font-size: 125% !important; } } @media only screen and (min-width: 750px){ html { font-size: 150% !important; } } @media only screen and (min-width: 1242px){ html { font-size: 187.5% !important; } }</style>
    <!--样式-->
    <style type="text/css">.contact-lable { font-size: 14px; color: #333; margin-left: 10px; } .no-img-content{ width: 100%; text-align: center; background-color: #fff; height: 100%; } .no-img{ max-width: 200px; max-height: 200px; margin-top: 20px; } .no-img-title{ font-size: 14px; color: #BBBBBB; } .add-address { width: 100%; position: fixed; bottom: 0; left: 0; z-index: 600; background-color: #fff; height: 50px; } .cell-icon{ width: 30px; height: 30px; text-align: right; }</style>
    <!-- 内容 -->
    <div id="addresslist" class="container page">
#if(coupons?? && coupons.size()>0)
<div class="topTile">优惠券(#(coupons.size())张)</div>
        <div class="couponList">
        
        		#for(coupon : coupons)
				<div class="stamp #if(useCoupon(cart.totalPrice,coupon.miniprice)) #else invalid #end">
					<div class="par">
						<div>#(coupon.name)</div>
						<text class="sign">￥</text>
						<span>#(coupon.price)</span>
						<text>优惠券</text>
						<div>订单满#(coupon.miniprice)元</div>
					</div>
					<div class="copy">
						<div>#date(coupon.startTime,'yyyy-MM-dd')</div>
						<div>#date(coupon.endTime,'yyyy-MM-dd')</div>
						#if(useCoupon(cart.totalPrice,coupon.miniprice)) <a href="#(base)/order/add?couponId=#(coupon.id)" class="chooseNav">去使用</a> #else <a class="chooseNav">不可用</a> #end
					</div>
				</div>
				#end
			</div>
        #else
      <div class="no-data" style="text-align: center;margin: 50px;">
        <i class="van-icon van-icon-orders-o" style="color: rgb(217, 217, 217); font-size: 8rem;">
          <!---->
          <!----></i>
        <p>-- 暂无数据 --</p>
      </div>
      #end
        
        
        
    </div>
    <!-- 逻辑 -->
    <div class="van-toast van-toast--default van-toast--middle" style="z-index: 2000; display: none;">
      <!---->
      <!---->
      <div class="van-loading van-loading--circular van-loading--white" style="color: white;">
        <span class="van-loading__spinner van-loading__spinner--circular">
          <svg viewBox="25 25 50 50" class="van-loading__circular">
            <circle cx="50" cy="50" r="20" fill="none"></circle>
          </svg>
        </span>
      </div>
      <div class="van-toast__text">加载中...</div></div>
    <!-- 底部内容-->
    <style>#mini_footer{ position: absolute; text-align: center; width: 100%; font-size: 12px; color: #ccc; bottom: 10px;}</style>
    <!-- <div id="mini_footer">© 2018 POWER BY HTPAI.COM</div> --></body>

</html>